package com.shy.autoconofig;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;

public class OSConfig {

    @Bean("os")
    @Conditional(MacCondition.class)
    public String macOS() {
        return "mac";
    }

    @Bean("os")
    @Conditional(WindowsCondition.class)
    public String windowsOS() {
        return "windows";
    }

    @Bean("os")
    public String linuxOS() {
        return "linux";
    }
}
